﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Data;
using QL_KhachSan.App_Code.OBJ;

namespace QL_KhachSan.App_Code.DAL
{
    class DAL_Bienlai
    {
        db_Connection dbcon;
        public DAL_Bienlai() {
            dbcon = new db_Connection();
        }
        public void add_bienlai(Bienlai bl) {
            SqlParameter[] p = new SqlParameter[4];
            p[0] = new SqlParameter("@mabl", bl._mabl);
            p[1] = new SqlParameter("@makh", bl._makh);
            p[2] = new SqlParameter("@tiendichvu", bl._tiendichvu);
            p[3] = new SqlParameter("@tienphong", bl._tienphong);
            dbcon.exe_proc_para("add_bienlai", p);
        }
    }
}
